package org.example.ai.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("conversations")
public class Conversations implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 对话ID
     */
    @TableId(value = "conversation_id", type = IdType.AUTO)
    private Integer conversationId;

    /**
     * 对话所属用户ID
     */
    private Integer userId;

    /**
     * 对话标题
     */
    private String title;

    /**
     * 对话开始时间
     */
    private LocalDateTime startTime;

    /**
     * 对话最后更新时间
     */
    private LocalDateTime lastUpdate;


}
